<!DOCTYPE html>
<html>
  <head>
    <meta name="creator" content="mantohtml v2.0.1">
    <title>cups-config(1)</title>
  </head>
  <body>
    <h1 id="cups-config-1">cups-config(1)</h1>
    <h2 id="cups-config-1.name">Name</h2>
<p>cups-config - get cups api, compiler, directory, and link information (deprecated).
</p>
    <h2 id="cups-config-1.synopsis">Synopsis</h2>
<p><strong>cups-config</strong>
<em>--api-version</em>
<br>
<strong>cups-config</strong>
<em>--build</em>
<br>
<strong>cups-config</strong>
<em>--cflags</em>
<br>
<strong>cups-config</strong>
<em>--datadir</em>
<br>
<strong>cups-config</strong>
<em>--help</em>
<br>
<strong>cups-config</strong>
<em>--ldflags</em>
<br>
<strong>cups-config</strong>
[
<em>--image</em>
] [
<em>--static</em>
]
<em>--libs</em>
<br>
<strong>cups-config</strong>
<em>--serverbin</em>
<br>
<strong>cups-config</strong>
<em>--serverroot</em>
<br>
<strong>cups-config</strong>
<em>--version</em>
<br>
</p>
    <h2 id="cups-config-1.description">Description</h2>
<p>The <strong>cups-config</strong> command allows application developers to determine the necessary command-line options for the compiler and linker, as well as the installation directories for filters, configuration files, and drivers.
All values are reported to the standard output.
<strong>Note:</strong>
This command is deprecated and will be removed in a future version of CUPS.
The
<strong>pkg-config</strong>(1)

command should be used instead.
</p>
    <h2 id="cups-config-1.options">Options</h2>
<p>The <strong>cups-config</strong> command accepts the following command-line options:
</p>
    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>--api-version</strong><br>
Reports the current API version (major.minor).
</p>
    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>--build</strong><br>
Reports a system-specific build number.
</p>
    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>--cflags</strong><br>
Reports the necessary compiler options.
</p>
    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>--datadir</strong><br>
Reports the default CUPS data directory.
</p>
    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>--help</strong><br>
Reports the program usage message.
</p>
    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>--ldflags</strong><br>
Reports the necessary linker options.
</p>
    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>--libs</strong><br>
Reports the necessary libraries to link to.
</p>
    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>--serverbin</strong><br>
Reports the default CUPS binary directory, where filters and backends are stored.
</p>
    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>--serverroot</strong><br>
Reports the default CUPS configuration file directory.
</p>
    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>--static</strong><br>
When used with <em>--libs</em>, reports the static libraries instead of the default (shared) libraries.
</p>
    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>--version</strong><br>
Reports the full version number of the CUPS installation (major.minor.patch).
</p>
    <h2 id="cups-config-1.examples">Examples</h2>
<p>Show the currently installed version of CUPS:
</p>
    <pre>
    cups-config --version

</pre>
<p>Compile a simple one-file CUPS filter:
</p>
    <pre>
    cc `cups-config --cflags --ldflags` -o filter filter.c \
        `cups-config --libs`
</pre>
    <h2 id="cups-config-1.deprecated-options">Deprecated Options</h2>
<p>The following options are deprecated but continue to work for backwards compatibility:
</p>
    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>--image</strong><br>
Formerly used to add the CUPS imaging library to the list of libraries.
</p>
    <h2 id="cups-config-1.see-also">See Also</h2>
<p><strong>cups</strong>(1),

<strong>pkg-config</strong>(1),

CUPS Online Help (<a href="http://localhost:631/help">http://localhost:631/help</a>)
</p>
    <h2 id="cups-config-1.copyright">Copyright</h2>
<p>Copyright &copy; 2020-2024 by OpenPrinting.
  </body>
</html>
